
//------------------------------------------------------------------------------

namespace Apps.Models
{
     using System.ComponentModel.DataAnnotations.Schema;
    using System;
    using System.Collections.Generic;

    [Table("SYSRIGHT")]
    public partial class SysRight
    {
        public SysRight()
        {
            this.SysRightOperate = new HashSet<SysRightOperate>();
            this.SysRightDataFilter = new HashSet<SysRightDataFilter>();
        }

        [Column("ID"), System.ComponentModel.DataAnnotations.Key]
        public string Id { get; set; }
        [Column("MODULEID")]
        public string ModuleId { get; set; }
        [Column("ROLEID")]
        public string RoleId { get; set; }
        [Column("RIGHTFLAG")]
        public bool Rightflag { get; set; }

        public virtual SysModule SysModule { get; set; }
        public virtual SysRole SysRole { get; set; }
        public virtual ICollection<SysRightOperate> SysRightOperate { get; set; }
        public virtual ICollection<SysRightDataFilter> SysRightDataFilter { get; set; }
    }
}
